package com.kalvin.kvf.modules.hxy.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
import com.kalvin.kvf.modules.hxy.entity.Account;
import com.kalvin.kvf.modules.hxy.mapper.AccountMapper;

import java.util.List;

/**
 * <p>
 * 账户信息表 服务实现类
 * </p>
 * @since 2023-10-28 15:35:38
 */
@Service
public class AccountServiceImpl extends ServiceImpl<AccountMapper, Account> implements AccountService {

    @Override
    public Page<Account> listAccountPage(Account account) {
        Page<Account> page = new Page<>(account.getCurrent(), account.getSize());
        List<Account> accounts = baseMapper.selectAccountList(account, page);
        return page.setRecords(accounts);
    }

}
